package com.jiudengnile.liushu.biz.dal.dao;

import com.jiudengnile.liushu.biz.domains.permission.PermissionUserDO;
import com.jiudengnile.liushu.biz.query.ListWithTotalCount;
import com.jiudengnile.liushu.biz.query.PermissionQuery;

public interface PermissionUserDAO {

	long create(PermissionUserDO permissionUser);

	public void delete(long id);

	public void update(PermissionUserDO permissionUser);

	public PermissionUserDO queryById(long id);
	
	public ListWithTotalCount<PermissionUserDO> queryByUserForPage(PermissionQuery permissionQuery);
	
	public ListWithTotalCount<PermissionUserDO> queryByPemissionForPage(PermissionQuery permissionQuery);
	
	public PermissionUserDO queryByUserAndCode(long userId, String permissionCode);
	
}
